package com.ext.aic.apis;

import com.ext.aic.constants.ApiConstants;

/**
 * 为适配多地址环境，带有前缀的地址在请求过程中会被正确的替换掉
 * 多模块地址前用[]作为占位符，例如：[AI]/agent/
 */
public interface ApiPaths {

    //用户注册
    String register = "/api/auth/register";

    //用户登录
    String login = "/api/auth/login";

    //预装授权
    String preinstalledLicense = "/api/preinstalled/license";

    //审核状态查询
    String auditStatus = "/api/audit/status";

    //退出登录
    String logout = "/api/auth/logout";

    //刷新token
    String refreshToken = "/api/auth/token/renew";

    //用户信息获取
    String userInfo = "/api/users/me";

    //获取内容列表
    String contentList = "/api/contents/me";

    //获取内容详情
    String contentDetail = "/api/contents/{0}";

    //发布内容
    String contentPublish = "/api/contents";

    //更新发布内容
    String contentUpdatePublish = "/api/contents/{0}";

    //附件上传确认
    String attachmentConfirm = "/api/attachments/confirm";

    //附件url获取
    String attachmentUrl = "/api/attachments/%s/download-url";

    //预上传
    String preUpload = "/api/attachments/upload-url";

    //获取任务列表
    String taskList = "/api/tasks/me";

    //智能文案生成
    String contentGenerate = String.format("/%s/content/generate", ApiConstants.aiPathTag);

    //插入或更新AI
    String insertUpdateAI = String.format("/%s/agent/", ApiConstants.aiPathTag);

    //查询AI分身
    String queryAgent = String.format("/%s/agent/{userId}", ApiConstants.aiPathTag);

    //生成Agent回复
    String agentReply = String.format("/%s/chat", ApiConstants.aiPathTag);

    //文案续写
    String contentContinue = String.format("/%s/content/continuation", ApiConstants.aiPathTag);

    //AI生成图片
    String generateImage = String.format("/%s/image", ApiConstants.aiPathTag);

    //获取行业列表
    String industryList = String.format("/%s/industry/tree", ApiConstants.gettingCustomersPathTag);

    //获取企业列表
    String companyList = String.format("/%s/company/getList", ApiConstants.gettingCustomersPathTag);

    //获取AI分身间隔时间
    String agentInterval = String.format("/%s/getInterval", ApiConstants.gettingCustomersPathTag);
}
